package service.serviceimpl;

import dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.User;
import service.Userservice;
@Service
public class UserServiceimpl implements Userservice {

    @Autowired
    UserDao userDao;
    @Override
    public User selectOne(String name,String passward) {
        User user = userDao.selectOne(name,passward);
        return user;
    }

    @Override
    public User selectOne1(String name) {
        User user = userDao.selectOne1(name);
        return user;
    }
}
